<?php
include_once("../../php/include_all.php");

$cr=$_GET[car];
$cari = get_datas("select * from mus_berita where judul LIKE '%$cr%' OR isi LIKE '%$cr%'");
echo count($cari);
if (count($cari)== 0 ) {
	
?>	<tr>
		<td colspan="8">
		 Maaf Data Tidak Ditemukan 
		</td>
	</tr>
<?php
}
else {  
	foreach ($cari as $cari){
	       ?> 	
		   <tr>
            	<td><?php echo $cari['id_berita']?></td>
                <td><?php echo $cari['judul']?></td>
                <td><?php echo $cari['pengantar']?></td>
                <td><?php echo $cari['isi']?></td>
				<td style="text-align:center;">
					<a href="#modalwin" data-toggle="modal" class="btn btn-info btn-small bt-edit-berita" name="<?php echo $cari['id_berita']; ?>"><i class="icon-edit icon-white"></i>Ubah</a>
                    <a class="btn btn-danger btn-small bt-delete-berita" name="<?php echo $cari['id_berita']; ?>"><i class="icon-trash icon-white"></i>Hapus</a>
                    </td>
            </tr>
		   <?php
}
 }
 
?>